﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TWS.Cart.Business;
using TWS.Cart.Data;

public partial class Application_Controls_CartHeader : System.Web.UI.UserControl
{
	ShoppingCartManager scm = new ShoppingCartManager();

    protected void Page_Load(object sender, EventArgs e)
    {
		CartCatConfigurationParameter ssConfigParam = new CartCatConfigurationParameter(CartCatConfigurationParameter.Columns.KeyName, "CartUrl");
		HyperLinkViewCart.NavigateUrl= ssConfigParam.ValueX;

    	LiteralNumber.Text = scm.GetTotalItems().ToString();
    }
}
